package cloud.seri.iot.common.model

import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotBlank

data class CreateProductDTO(

    @ApiModelProperty("产品版本类型选择为iothub_senior的产品数据格式。\n" +
        "此参数为高级版产品的特有参数，并且是创建高级版产品的必需参数。\n" +
        "\n" +
        "可选值：\n" +
        "\n" +
        "0：透传/自定义格式（CUSTOM_FORMAT）。\n" +
        "1：Alink协议（ALINK_FORMAT）。")
    var dataFormat: Int = 0,

    var nodeType: Int = 0,

    var id2: Boolean = false,

    var netType: String = "WIFI",

    @NotBlank(message = "产品名称不能为空")
    var productName: String? = null,

    var description: String? = null,

    var protocolType: String? = null,

    var aliyunCommodityCode: String = "iothub_senior"
)
